import componentSetting from '/@/settings/componentSetting';

const { table } = componentSetting;

const {
  pageSizeOptions,
  defaultPageSize,
  fetchSetting,
  defaultSize,
  defaultSortFn,
  defaultFilterFn,

  showIndexColumn,
  defaultAlign,
} = table;

export const ROW_KEY = 'key';

// 分页的可选显示数量
export const PAGE_SIZE_OPTIONS = pageSizeOptions;

// 默认每页显示多少条
export const PAGE_SIZE = defaultPageSize;

// table 请求配置
export const FETCH_SETTING = fetchSetting;

// table默认大小
export const DEFAULT_SIZE = defaultSize;

// 默认排序方法
export const DEFAULT_SORT_FN = defaultSortFn;

// 自定义过滤方法
export const DEFAULT_FILTER_FN = defaultFilterFn;

export const DEFAULT_ALIGN = defaultAlign;

export const INDEX_COLUMN_FLAG = 'INDEX';

export const DEFAULT_VISIBLE_INDEX_COLUMN = showIndexColumn;

export const ACTION_COLUMN_FLAG = 'ACTION';
